package com.spring.sunflower.bean;

import com.google.gson.annotations.SerializedName;

public class CustomMessageBean {
  public static final String CONTENT_AUDIO = "[语音]";
  
  public static final String CONTENT_GIFT = "[礼物]";
  
  public static final String CONTENT_PICTURE = "[图片]";
  
  public static final String ID_CUSTOM_SERVICE_MSG = "10001";
  
  public static final String ID_SYSTEM_MESSAGE = "10000";
  
  public static final String SEND_SELF = "1";
  
  public static final String SEND_SELF_TRUE = "true";
  
  public static final String TYPE_AUDIO = "audio";
  
  public static final String TYPE_GIFT = "gift";
  
  public static final String TYPE_PICTURE = "picture";
  
  public static final String TYPE_SYSTEM = "system";
  
  public static final String TYPE_TEXT = "word";
  
  public DataBean data;
  
  public String type = "privateMsg";
  
  public static class DataBean {
    public AudioBean audio;
    
    public String content;
    
    public UserBean fromUser;
    
    public GiftBean gift;
    
    public String msgType;
    
    public PictureBean picture;
    
    public String readType = "normal";
    
    public long time;
    
    public UserBean toUser;

    public AudioBean getAudio() {
      return audio;
    }

    public void setAudio(AudioBean audio) {
      this.audio = audio;
    }

    public String getContent() {
      return content;
    }

    public void setContent(String content) {
      this.content = content;
    }

    public UserBean getFromUser() {
      return fromUser;
    }

    public void setFromUser(UserBean fromUser) {
      this.fromUser = fromUser;
    }

    public GiftBean getGift() {
      return gift;
    }

    public void setGift(GiftBean gift) {
      this.gift = gift;
    }

    public String getMsgType() {
      return msgType;
    }

    public void setMsgType(String msgType) {
      this.msgType = msgType;
    }

    public PictureBean getPicture() {
      return picture;
    }

    public void setPicture(PictureBean picture) {
      this.picture = picture;
    }

    public String getReadType() {
      return readType;
    }

    public void setReadType(String readType) {
      this.readType = readType;
    }

    public long getTime() {
      return time;
    }

    public void setTime(long time) {
      this.time = time;
    }

    public UserBean getToUser() {
      return toUser;
    }

    public void setToUser(UserBean toUser) {
      this.toUser = toUser;
    }

    public static class AudioBean {
      public int duration;
      
      public String url;
    }
    
    public static class GiftBean {
      @SerializedName(alternate = {"giftEffects"}, value = "effects")
      public String effects;
      
      @SerializedName(alternate = {"giftId"}, value = "id")
      public String id;
      
      @SerializedName(alternate = {"giftIcon"}, value = "imagePath")
      public String imagePath;
      
      @SerializedName(alternate = {"giftName"}, value = "name")
      public String name;
      
      @SerializedName(alternate = {"giftCount"}, value = "number")
      public String number;
    }
    
    public static class PictureBean {
      public int height;
      
      public String url;
      
      public int width;
    }
    
    public static class UserBean {
      public String memberId;
      
      public String nickname;
      
      public String photo;
      
      public String selfSend;

      public String getMemberId() {
        return memberId;
      }

      public void setMemberId(String memberId) {
        this.memberId = memberId;
      }

      public String getNickname() {
        return nickname;
      }

      public void setNickname(String nickname) {
        this.nickname = nickname;
      }

      public String getPhoto() {
        return photo;
      }

      public void setPhoto(String photo) {
        this.photo = photo;
      }

      public String getSelfSend() {
        return selfSend;
      }

      public void setSelfSend(String selfSend) {
        this.selfSend = selfSend;
      }
    }
  }
  
  public static class AudioBean {
    public int duration;
    
    public String url;
  }
  
  public static class GiftBean {
    @SerializedName(alternate = {"giftEffects"}, value = "effects")
    public String effects;
    
    @SerializedName(alternate = {"giftId"}, value = "id")
    public String id;
    
    @SerializedName(alternate = {"giftIcon"}, value = "imagePath")
    public String imagePath;
    
    @SerializedName(alternate = {"giftName"}, value = "name")
    public String name;
    
    @SerializedName(alternate = {"giftCount"}, value = "number")
    public String number;
  }
  
  public static class PictureBean {
    public int height;
    
    public String url;
    
    public int width;
  }
  
  public static class UserBean {
    public String memberId;
    
    public String nickname;
    
    public String photo;
    
    public String selfSend;
  }
}